package com.peng.test.api.impl2;

import com.peng.rpc.annotation.Service;
import com.peng.rpc.api.HelloObject;
import com.peng.rpc.api.HelloService;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Wonderson
 * @email wpp.ds@foxmail.com
 * @date 2022/3/5 23:17
 */
@Slf4j
@Service
public class HelloServiceImpl2 implements HelloService {

    @Override
    public String hello(HelloObject helloObject) {
        log.info("收到客户端的信息：{}", helloObject.getMessage());
        return "这是来自Socket服务器的HelloImpl2的处理, 返回值为：" + helloObject.getId();
    }

}
